package cn.clx.basic.mapper;

import cn.clx.basic.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {
    void save(T t);

    void update(T t);

    void deleteById(Long id);

    List<T> loadAll();

    T loadById(Long id);

    //分页展示的信息
    List<T> queryData(BaseQuery query);

    //展示条数
    Long queryCount(BaseQuery query);
}
